package com.zbl.zblproject.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author youlanqiang
 * @version 1.0
 * @date 2018/12/7
 * 用户充值记录
 */
@TableName("zbl_recharge_log")
public class RechargeLog {


    @TableId(type = IdType.AUTO)
    private int id;

    /**
     * 充值时间
     */
    private LocalDateTime time;

    /**
     * 用户ID
     */
    private int userId;

    /**
     * 充值金额
     */
    private BigDecimal money;

    private int mode;

    private String operatorName;

    private BigDecimal beforeMoney;

    @TableField(exist = false)
    private AdminUser adminUser;

    @TableField(exist = false)
    private Supplier supplier;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public LocalDateTime getTime() {
        return time;
    }

    public void setTime(LocalDateTime time) {
        this.time = time;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public int getMode() {
        return mode;
    }

    public void setMode(int mode) {
        this.mode = mode;
    }

    public String getOperatorName() {
        return operatorName;
    }

    public void setOperatorName(String operatorName) {
        this.operatorName = operatorName;
    }

    public AdminUser getAdminUser() {
        return adminUser;
    }

    public void setAdminUser(AdminUser adminUser) {
        this.adminUser = adminUser;
    }

    public Supplier getSupplier() {
        return supplier;
    }

    public void setSupplier(Supplier supplier) {
        this.supplier = supplier;
    }

    public BigDecimal getBeforeMoney() {
        return beforeMoney;
    }

    public void setBeforeMoney(BigDecimal beforeMoney) {
        this.beforeMoney = beforeMoney;
    }

    @Override
    public String toString() {
        return "RechargeLog{" +
                "id=" + id +
                ", time=" + time +
                ", userId=" + userId +
                ", money=" + money +
                ", mode=" + mode +
                '}';
    }
}
